package ink.onei.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import ink.onei.common.annotation.Excel;
import ink.onei.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

public class PeopleVo extends BaseEntity {
    private Long id;

    /**
     * 收信者
     */
    @Excel(name = "收信者 ")
    private String receiveId;

    /**
     * 发信者
     */
    @Excel(name = "发信者 ")
    private String createId;

    /**
     * 时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间 ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /**
     * 状态 0：未读；1：已读
     */
    @Excel(name = "状态 0：未读；1：已读")
    private Long status;

    /**
     * 内容
     */
    @Excel(name = "内容 ")
    private String content;

    /**
     * 附件
     */
    @Excel(name = "附件")
    private String annex;

    /**
     * 管理员删除：0       接收人删除：1      发送人删除：2
     */
    @Excel(name = "管理员删除：0       接收人删除：1      发送人删除：2   ")
    private Long deleteId;

    /**
     * 点赞    收藏    @
     */
    @Excel(name = "点赞    收藏    @")
    private Long type;

    public PeopleVo() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getReceiveId() {
        return receiveId;
    }

    public void setReceiveId(String receiveId) {
        this.receiveId = receiveId;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAnnex() {
        return annex;
    }

    public void setAnnex(String annex) {
        this.annex = annex;
    }

    public Long getDeleteId() {
        return deleteId;
    }

    public void setDeleteId(Long deleteId) {
        this.deleteId = deleteId;
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("receiveId", getReceiveId())
                .append("createId", getCreateId())
                .append("time", getTime())
                .append("status", getStatus())
                .append("content", getContent())
                .append("annex", getAnnex())
                .append("deleteId", getDeleteId())
                .append("type", getType())
                .toString();
    }
}
